import SvgIcon from "./SvgIcon/Index.vue"
import Pagination from "./Pagination/Index.vue"
import Category from "./Category/index.vue"
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
import type { App, Component } from "vue"
const components: { [name: string]: Component } = {
  SvgIcon,
  Pagination,
  Category,
}

export default {
  install(app: App) {
    Object.keys(components).forEach((key: string) => {
      app.component(key, components[key])
    })
    // return false
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
